#ifndef BLUETOOTH_OBSERVER_H
#define BLUETOOTH_OBSERVER_H

typedef signed char             int8;
typedef signed short            int16;
typedef signed long             int32;
typedef signed long long        int64;
typedef unsigned char           uint8;
typedef unsigned short          uint16;
typedef unsigned long           uint32;
typedef unsigned long long      uint64;

//如果是.c文件，需要加入此宏的控制，如果是.cpp文件则不需要
#ifdef __cplusplus
extern "C" {
#endif
//register callback

//观察蓝牙rfcomm连接状态
void observe_bluetooth_rfcomm( void (*pFunc)(int wl_carplay) );

int readRfcomm(uint8 *data, uint16 len,int * length);

int writeRfcomm(uint8 *data, uint16 len,int * length);

int disconnectRfcomm();




#ifdef __cplusplus
}
#endif

#endif // BLUETOOTH_OBSERVER_H
